/**
 * Copyright (C) 2013 SHANGHAI VOLKSWAGEN, All rights reserved.
 * License version 1.0, a copy of which has been included with this.
 *
 * @File name：com.bwie.common.domain.Community
 * @Create on：2024/3/24
 * @Author：liuchang
 */
package com.bwie.common.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * <p>ClassName：Community</p >
 * <p>Description：</p >
 * <p>Author：liuchang</p >
 * <p>Date：2024/3/24</p >
 */
@Data
public class Community {
    private Integer id;//id
    private Integer userId;//用户id
    @NotNull(message = "科室不能为空")
    private Integer tagId;//标签id(儿科/妇科)
    @NotBlank(message = "主题不能为空")
    private String title;//主题
    @NotBlank(message = "治疗经历不能为空")
    private String experience;//治疗经历
    @NotBlank(message = "发布内容不能为空")
    private String context;//发布内容
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;//发布时间
    private String isDelete;//是否删除1.存在2.删除

}
